projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb29c1f
)
GtkActionHelper: Avoid null deref in debug code
author
Matthias Clasen
<mclasen@redhat.com>
Fri, 17 Jul 2015 22:38:01 +0000
(18:38 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Fri, 17 Jul 2015 22:38:01 +0000
(18:38 -0400)
gtk/gtkactionhelper.c
patch
|
blob
|
history
diff --git
a/gtk/gtkactionhelper.c
b/gtk/gtkactionhelper.c
index 50060ee092c3e9e569b17d7e05e44a53bb4f5e51..2c286279f7b318782e768d60d2bdfd42a259b58d 100644
(file)
--- a/
gtk/gtkactionhelper.c
+++ b/
gtk/gtkactionhelper.c
@@
-415,7
+415,7
@@
gtk_action_helper_set_action_name (GtkActionHelper *helper,
return;
GTK_NOTE(ACTIONS,
- if (!strchr (action_name, '.'))
+ if (
action_name == NULL ||
!strchr (action_name, '.'))
g_message ("actionhelper: action name %s doesn't look like 'app.' or 'win.' "
"which means that it will probably not work properly.", action_name));